# -*- coding: utf-8 -*-

from django.db import models

# Create your models here.

#列车信息
class Train2(models.Model):
    Code = models.CharField(max_length=30) #车次
    Type = models.CharField(max_length=50) #列车类型
    Station = models.CharField(max_length=10) #车站
    S_No = models.CharField(max_length=3)   #站序
    Day = models.CharField(max_length=2)    #天数
    A_Time = models.CharField(max_length=10) #到达时间
    D_Time = models.CharField(max_length=10) #开车时间
    Distance = models.CharField(max_length=10) #里程
    P1 = models.CharField(max_length=8,null=True)
    P2 = models.CharField(max_length=8,null=True)
    P3 = models.CharField(max_length=8,null=True)
    P4 = models.CharField(max_length=8,null=True)
    #P55 = models.TextField()


#列车信息
class Train(models.Model):
    Code = models.CharField(max_length=30) #车次
    Type = models.CharField(max_length=50) #列车类型
    Station = models.CharField(max_length=10) #车站
    S_No = models.CharField(max_length=3)   #站序
    Day = models.CharField(max_length=2)    #天数
    A_Time = models.CharField(max_length=10) #到达时间
    D_Time = models.CharField(max_length=10) #开车时间
    Distance = models.CharField(max_length=10) #里程
    P1 = models.CharField(max_length=8,null=True)
    P2 = models.CharField(max_length=8,null=True)
    P3 = models.CharField(max_length=8,null=True)
    P4 = models.CharField(max_length=8,null=True)
    #P55 = models.TextField()



#class Author(models.Model):
#    salutation = models.CharField(maxlength=10)
#    first_name = models.CharField(maxlength=30)
#    last_name = models.CharField(maxlength=40)
#    email = models.EmailField()
#    headshot = models.ImageField(upload_to='/tmp')
#
#class Book(models.Model):
#    title = models.CharField(maxlength=100)
#    authors = models.ManyToManyField(Author)
#    publisher = models.ForeignKey(Publisher)
#    publication_date = models.DateField()
    